package com.lagou.dao;

import com.lagou.domain.Course;
import com.lagou.domain.CourseSection;

import java.util.List;

public interface CourseContentMapper {

    /*根据课程id查询关联的章节信息及章节关联的课时信息*/
    public List<CourseSection> findSectionAndLessonByCourseId(Integer courseId);

    /*回显章节对应的课时信息*/
    public Course findCourseById(int CourseId);


    /*保存章节*/
    public void saveSection(CourseSection courseSection);

    /*修改章节*/
    public  void updateSection(CourseSection courseSection);

    /*修改章节状态*/
    public void updateSectionStatus(CourseSection courseSection);
}
